import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

export default function TransactionMonitoringAPI(api) {
  return {
    // 获取产品数和规模
    getEchartsOne: (query) => api.get(`${config.interfaces.type1}tradeMonitor/queryProductScale`, query),
    // 获取机构规模TOP5
    getEchartsTwo: (query) => api.get(`${config.interfaces.type1}tradeMonitor/queryCompanyScale`, query),
    // 获取交易笔数
    getEchartsThree1: (query) => api.get(`${config.interfaces.type1}tradeMonitor/queryTradeNum`, query),
    // 获取交易金额
    getEchartsThree2: (query) => api.get(`${config.interfaces.type1}tradeMonitor/queryTradeBalance`, query),
    // 获取交易类型及金额
    getEchartsFour: (query) => api.get(`${config.interfaces.type1}tradeMonitor/queryTradeWithType`, query),
    // 获取各区域数据
    getTableDate: (query) => api.get(`${config.interfaces.type1}tradeMonitor/queryTenantByProvince`, query),
    // 获取累计交易数值
    getAccount: (query) => api.get(`${config.interfaces.type1}tradeMonitor/queryTradeTotal`, query),
  };
}
